package com.open.system.model;

import java.io.Serializable;

/**
 * @author dashu03
 * @date 2025年07月23日 17:50
 * @description 在线用户信息
 */
public class OnlineUser implements Serializable {

    private static final long serialVersionUID = 4822274709883076484L;
    /**
     * 唯一编号
     */
    private String uid;

    /**
     * 账号
     */
    private String username;

    /**
     * 昵称
     */
    private String name;

    /**
     * 最后登录IP
     */
    private String loginIp;

    /**
     * 最后登录时间
     */
    private String loginDate;

    /**
     * 当前用户
     */
    boolean currentUser = false;

    public boolean isCurrentUser() {
        return currentUser;
    }

    public void setCurrentUser(boolean currentUser) {
        this.currentUser = currentUser;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public String getLoginDate() {
        return loginDate;
    }

    public void setLoginDate(String loginDate) {
        this.loginDate = loginDate;
    }

    @Override
    public String toString() {
        return "OnlineUser{" +
                "uid='" + uid + '\'' +
                ", username='" + username + '\'' +
                ", name='" + name + '\'' +
                ", loginIp='" + loginIp + '\'' +
                ", loginDate='" + loginDate + '\'' +
                ", currentUser=" + currentUser +
                '}';
    }
}
